package com.blb.service;

import com.blb.entity.Shelves;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyp
 * @since 2019-11-14
 */
public interface IShelvesService extends IService<Shelves> {
    /**
     * 查询全部
     * @return
     */
    public List<Shelves> getAll();
    /**
     * 查询全部货架info
     * 依据货架编号、创建时间
     * @param shelvesNo
     * @param
     * @return
     */
    public List<Shelves> getAllShelves(@Param("nodeId") String nodeId,@Param("nodeType") String nodeType,
                                       @Param("companyid") String companyId,@Param("shelvesNo") String shelvesNo,
                                       @Param("createTime") String createTime,@Param("start") int start, @Param("length") int length);
    /**
     * 计数
     * @param shelvesNo
     * @param createTime
     * @return
     */
    int count(@Param("nodeId") String nodeId,@Param("nodeType") String nodeType,
              @Param("companyid") String companyId,
              @Param("shelvesNo") String shelvesNo,@Param("createTime") String createTime);
    /**
     * 依据goodId查询货架信息
     * @param damId
     * @return
     */
    List<Shelves> getByGoodId(String damId);
    /*更新货架*/
    void updateShelves(Shelves shelves);
    /*依据ID查看货架信息*/
    Shelves findShelvesById(String id);
    /*更新货架状态*/
    void updateShelvesStatus(String id, String status);
}
